package com.example.utils.result;

import java.io.Serializable;

/**
 * @Description: 基础响应模板
 * @Author runto
 * @Date 2023/10/22 10:34
 * @PackageName:com.example.utils.result
 * @ClassName: BaseResponse
 * @Version 1.0
 */
public class BaseResponse<T> implements Serializable {

    private static final long serialVersionUID = -4708123760611799385L;

    /**
     * "0000":成功 其他失败
     */
    private String resultCode;

    /**
     * 是否成功代码对应的信息
     */
    private String resultMessage;

    /**
     * 业务数据
     */
    private T result=null;

    /**
     * 公司对应的Id(未转化前)
     */
    private String custId;

    /**
     * 构造函数
     * @param resultCode 是否成功代码
     * @param resultMessage 是否成功信息
     */
    public BaseResponse(String resultCode, String resultMessage) {
        super();
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }

    public BaseResponse() {
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }
}

